﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SyndicateBusiness.Classes;

namespace BigLotterySyndicate.Classes
{
    public class BasePublicPage : BasePage
    {
        public override BusinessFacade BusinessFacade
        {
            get
            {
                if (MasterPagePublic == null) return new BusinessFacade();
                else
                    return MasterPagePublic.BusinessFacade;
            }
        }

        public BigLotterySyndicate.PublicSite MasterPagePublic
        {
            get
            {
                return this.Master as BigLotterySyndicate.PublicSite;
            }
        }
    }
}